#
# packet template
#
# Copyright (C) 2009 by chrisv <me@cv.gd>
#          
# See CREDITS for details about who has contributed to this project.
#
# For further information about the pdaXrom project and license conditions
# see the README file.
#

FUSESMB_VERSION=0.8.7
FUSESMB=fusesmb-${FUSESMB_VERSION}.tar.gz
FUSESMB_MIRROR=http://www.ricardis.tudelft.nl/~vincent/fusesmb/download
FUSESMB_DIR=$BUILD_DIR/fusesmb-${FUSESMB_VERSION}
FUSESMB_ENV="$CROSS_ENV_AC"

build_fusesmb() {
    test -e "$STATE_DIR/fusesmb.installed" && return
    banner "Build fusesmb"
    download $FUSESMB_MIRROR $FUSESMB
    extract $FUSESMB
    apply_patches $FUSESMB_DIR $FUSESMB
    pushd $TOP_DIR
    cd $FUSESMB_DIR
    (
    eval \
	$CROSS_CONF_ENV \
	$FUSESMB_ENV \
	./configure --build=$BUILD_ARCH --host=$TARGET_ARCH \
	    --prefix=/usr \
	    --sysconfdir=/etc \
	    || error
    ) || error "configure"
    
    make $MAKEARGS || error
    
    

    error "update install"

    popd
    touch "$STATE_DIR/fusesmb.installed"
}

build_fusesmb
